import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/api/Admin/Auth/Login',
    method: 'post',
    data
  })
}

export function getInfo() {
  return request({
    url: '/api/Admin/Auth/GetUserInfo',
    method: 'get'
  })
}

// 重新获取权限Token
export function getNewToken() {
  return request({
    url: '/api/SystemManage/GetNewAuthenticationToken',
    method: 'post'
  })
}

// 重新获取登录Token
export function CheckNowLoginState() {
  return request({
    url: '/api/SystemManage/CheckNowLoginState',
    method: 'post'
  })
}





export function logout() {
//   return request({
//     url: '/vue-element-admin/user/logout',
//     method: 'post'
//   })
}
